package com.example.redis;

import com.example.redis.config.Test;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class RedisApplication {

    public static void main(String[] args) throws InterruptedException {
        ApplicationContext context=SpringApplication.run(RedisApplication.class, args);

        Test test=context.getBean(Test.class);
        test.doSomethings();
        Thread.sleep(10000);

    }

}
